package com.powernode.exceptions;

import com.powernode.web.result.RespCode;
import lombok.Getter;

@Getter
public class BossException extends RuntimeException{

    // 属性为枚举返回码
    private RespCode respCode;

    // 重载不同的构造方法
    public BossException() {
        super();
    }
    public BossException(String message) {
        super(message);
    }
    public BossException(RespCode respCode) {
        super(respCode.getText());
        this.respCode = respCode;
    }
}
